import request from '../utils/request'
// 角色管理

export function roleList(data) {
    return request({
        url: '/role/list',
        method: 'post',
        data
    })
}


export function roleSave(data) {
    return request({
        url: '/role/save',
        method: 'post',
        data
    })
}


export function roleUpdate(data) {
    return request({
        url: '/role/update',
        method: 'post',
        data
    })
}


export function roleDelete(data) {
    return request({
        url: '/role/delete',
        method: 'post',
        data
    })
}


export function roleEditUser(data) {
    return request({
        url: '/role/edit-user',
        method: 'post',
        data
    })
}


export function roleEditPermission(data) {
    return request({
        url: '/role/edit-permission',
        method: 'post',
        data
    })
}